﻿export default url => {
    const crud = window.$crud(url)

    // 改变状态
    crud.changeState = (id,data) =>window.$axios({
        url:`${url}/${id}`,
        method: 'put',
        data:data
    })   
    
    return {
        ...crud
    }
}